﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.Core.DAL.SQL
{
    public class NodeTable : ITable 
    {
        protected Table InnerTable
        {
            get; private set;
        }

        public NodeTable(string pAlias)
        {
            InnerTable = new Table("medianamik_Node", pAlias);
            InnerTable.AddColumn("NodeId");
            InnerTable.AddColumn("TypeId");
            InnerTable.AddColumn("ParentNodeId");
            InnerTable.AddColumn("Path");
            InnerTable.AddColumn("Depth");
            InnerTable.AddColumn("Position");
            InnerTable.AddColumn("IsDeleted");
            InnerTable.AddColumn("CreatedOn");
          
        }


        #region ITable Members

        public string Name
        {
            get { return InnerTable.Name; }
        }

        public string Alias
        {
            get { return InnerTable.Alias; }
        }

        public string Schema
        {
            get { return InnerTable.Schema; }
        }

        public Column this[string pColumnName]
        {
            get { return InnerTable[pColumnName]; }
        }

        public bool Contains(string pColumnName)
        {
            return InnerTable.Contains(pColumnName);
        }

        #endregion

       
    }
}
